import request from '@/utils/request'

// 查询电能统计列表
export function listPower(query) {
  return request({
    url: '/system/power/list',
    method: 'get',
    params: query
  })
}

// 查询电能统计详细
export function getPower(id) {
  return request({
    url: '/system/power/' + id,
    method: 'get'
  })
}

// 新增电能统计
export function addPower(data) {
  return request({
    url: '/system/power',
    method: 'post',
    data: data
  })
}

// 修改电能统计
export function updatePower(data) {
  return request({
    url: '/system/power',
    method: 'put',
    data: data
  })
}

// 删除电能统计
export function delPower(id) {
  return request({
    url: '/system/power/' + id,
    method: 'delete'
  })
}

// 导出电能统计
export function exportPower(query) {
  return request({
    url: '/system/power/export',
    method: 'get',
    params: query
  })
}